package com.atguigu.mediator2;

/**
 * 同事类1
 */
public class ConcreteColleague1 extends Colleague {
	
	public void receive(String msg) {
		System.out.println("ConcreteColleague1 收到内容： "+msg);
	}

	public void send(String msg) {
		setMsg(msg);
		System.out.println("ConcreteColleague1 发出内容: "+msg);
		mediator.relay(this); // 请中介者转发
	}
}